Skip to content

Conversation

rbuckton
Copy link
Contributor

@rbuckton rbuckton commented Dec 7, 2016

This fixes an issue where the new emitter was not emitting decorators for accessor pairs where only the second accessor was decorated:

declare var dec: any;
class A {
    @dec() set value(value: string) { } // emits fine
    get value() { return ""; }
}
class B {
    set value(value: string) { }
    @dec() get value() { return ""; } // not emitted
}

Fixes #12727

//cc: @mhegazy

@mhegazy mhegazy merged commit da4d41f into master Dec 8, 2016
@mhegazy mhegazy deleted the fix12727 branch December 8, 2016 01:19
This was referenced Dec 9, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Breaking changes in 2.1.4 with NG2.1

3 participants